package com.own.business.login.core.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * TokenResponseVo
 *
 * @author chenxueli
 * @date 2023-08-28 08:51:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TokenResponseVo implements Serializable {

    @Schema(title = "用户id")
    private Long userId;

    @Schema(title = "登录令牌")
    private String token;

    @Schema(title = "刷新令牌")
    private String refreshToken;

    @Schema(title = "过期时间（时间戳）", description = "如果超过当前时间，登录令牌必过期。请刷新令牌重新获取")
    private Long expireTime;

}
